﻿using UnityEngine;
using System.Collections;
using UniLua;

namespace TCG.FFI
{
	public static class UnityComponentLib 
	{
		public static string LIB_NAME = "UnityComponentLib";

		public static string ParentLibName = "UnityObjectLib";

		public static int mf_GetGameObject (ILuaState luaState)
		{
			Component component = LuaTools.L_CheckUData (luaState, 1, LIB_NAME) as Component;
			LuaTools.L_PushUserData (luaState, component.gameObject, UnityGameObjectLib.LIB_NAME);
			return 1;
		}
	}
}